﻿using System.Runtime.Serialization;

namespace FU.Capstones.IMS.Services.Common.Respondents
{
    [DataContract(Namespace=InventoryConstants.ServiceNamespace, Name="Feedback")]
    public class Feedback
    {
        [DataMember]
        public string Message { get; set; }

        public string DebugMessage { get; set; }

        [DataMember]
        public bool IsSuccessful { get; set; }

        public Feedback()
        {
            Message = string.Empty;
            IsSuccessful = false;
        }

        public Feedback(string message, bool isSuccessful)
        {
            Message = message;
            IsSuccessful = isSuccessful;
        }
    }
}
